Skip to content

fix(vale): upgrade to Vale 3.29.0 - #737

Merged
aibex-agent[bot] merged 4 commits into
mainfrom
aibex/t_gdgxyDjiw09SQqcFddG3f5kC-vale-3.29
Dec 2, 2026
Merged

aibex-agent[bot] merged 4 commits into
mainfrom
aibex/t_gdgxyDjiw09SQqcFddG3f5kC-vale-3.29

Conversation

@aibex-agent

@aibex-agent aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown

Lands the Vale 3.29.0 upgrade from #731 together with the fixes it needs, as a lateral PR (AGENTS.md, "Landing a machine-generated vendor bump"). The branch is cut from #731's head, so it carries the bump commit (550b6c8c: the seven @taskless/vale-* pins, VALE_VERSION, the lockfile and the regenerated vocabulary). #731 gets closed once this lands.

What 3.29.0 changed, measured

Every row of VALE_FORMAT_TIERS was re-probed against the 3.29.0 binary. All probes were run with none of asciidoctor, rst2html or typst2vast on PATH.

Extensions 3.27.0 3.29.0
.adoc .asc .asciidoc converter (asciidoctor), run aborts markup
.rst .rest converter (rst2html), run aborts markup
.typ converter (typst2vast), run aborts markup (reader embedded)
.tex plaintext markup (LaTeX reader: math, \verb, % comments skipped)
.ltx .latex .mdoc .markdoc unlisted plaintext fallback markup
.dita .xml converter converter (unchanged)

Every other row measured the same. A malformed stray .yaml beside an explicitly enabled rule is still ignored, so 3.29.0 loading rules from .yaml doesn't affect us.

Changes

  • capabilities.ts: moved the rows above and added a 3.29.0 entry to the table's bump history.
  • Vendor contract: added markup fixtures for all eleven new rows, each pairing prose that fires with constructs that must not (listing/literal blocks, comments, math, \verb, code fences). The converter tests now cover only .dita/.xml.
  • Converter-skip tests and docs (vale-formats, vale-orchestration, formats.ts, run.ts): these used AsciiDoc/rST/Typst as the crashing example. They now use DITA/XML, which still crash the same way (.dita exits 2 with E100, .DITA lints as plain text, measured). A new test asserts the six formats are no longer excluded.
  • Recipes: the hazard glob in route and create-vale-rule is now [*.{md,dita}], and both recipes state that AsciiDoc, reStructuredText, Typst, LaTeX and Markdoc are markup on 3.29.0. Both topic revisions are bumped (route v13, create-vale-rule v24).
  • update ledger: added a 0.13.9 entry describing what existing rules now report differently, with a test.
  • Changeset: vale-3-29-0.md grows to say what users will see.
  • Dogfood: .taskless/taskless.json reconciled to Vale 3.29.0 with update --rules.

Checks

pnpm typecheck and pnpm lint pass. The full CLI suite passes (3459 passed, 11 skipped), including all 247 vendor-contract tests against the real 3.29.0 binary.

Refs #731

github-actions Bot and others added 3 commits December 2, 2026 07:30
Vale 3.29.0 reads AsciiDoc and reStructuredText in process and embeds
typst2vast, so .adoc, .asc, .asciidoc, .rst, .rest and .typ no longer
abort a run on a host without the converter. Measured with none of
asciidoctor, rst2html or typst2vast on PATH, each is markup now: prose
lints, and a listing or literal block and a comment do not. It also
reads LaTeX (.tex left the plaintext list; .ltx and .latex are new
rows) and Markdoc (.mdoc, .markdoc) as markup. Every other row measured
unchanged, and .dita and .xml remain the converter tier.

Move the rows in VALE_FORMAT_TIERS and pin them with markup fixtures in
the vendor contract. The converter-skip tests and the recipes' hazard
glob used AsciiDoc and Typst as their example; they now use DITA and
XML, which still crash the same way, measured. Bump the route and
create-vale-rule topics, add the 0.13.9 update ledger entry, and grow
the changeset.
@aibex-agent

aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown
Author

@claude /review

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @aibex-agent[bot]'s task in 3m 51s —— View job


Review mode: incremental — read 0 prior review thread(s) before reviewing.

.prior-review.json contains no threads, reviews, or top-level comments beyond the trigger comment itself, so there is nothing previously raised to classify as addressed/still-open. This is effectively the first review of this PR — everything below is [New].

  • Read prior review data (none)
  • Fetch PR diff and metadata
  • Review capabilities.ts changes
  • Review vale-formats/vale-orchestration/run.ts/formats.ts changes
  • Review recipe docs (route.md, create-vale-rule.md, update.md)
  • Review test files
  • Review changeset/dogfood files
  • Post findings

Summary

The core of this PR — moving eleven extensions in VALE_FORMAT_TIERS (packages/cli/src/rules/capabilities.ts), the new markup fixtures in vale-vendor-contract.test.ts, and the converter-skip tests/docs switching their crashing example from AsciiDoc/Typst to DITA — is internally consistent. I cross-checked the table edits against the "eleven rows, six out of the converter tier" accounting in the bump-history comment and it adds up exactly (6 converter→markup, 1 named-plaintext→markup for .tex, 4 unnamed-fallback→markup for .ltx/.latex/.mdoc/.markdoc). VALE_CONVERTER_READERS and the converter table correctly shrink to just .dita/.xml. .taskless/taskless.json's reconciledTo: "0.13.8" matches the CLI's current package.json version (getCliVersion()), which is consistent with the unreleased 0.13.9 changeset/ledger entry describing the next bump — not a mismatch.

Three small things worth cleaning up, none of them affecting behavior (docs/comments only), and outside any diff hunk so I could not anchor them as inline PR comments — reported here instead:

  1. packages/cli/src/rules/vale/formats.ts:134-140 and :159 (converterExclusionGlobs and buildValeGlob docstrings) — still illustrate the "real glob" case with *.adoc / docs/guide.adoc. Everywhere else in this same file and PR (e.g. converterFor's docstring a few lines above, now using .dita/topics/intro.dita), the stale .adoc/.typ example was deliberately swapped for .dita since AsciiDoc is no longer converter-dependent on 3.29.0. These two were missed.

  2. packages/cli/src/rules/capabilities.ts:667 (valeConverterList() docstring) — example is `.rst (needs rst2html), …`, which is no longer a pairing the function can produce now that .rst left the converter tier. Should become e.g. `.xml (needs xsltproc and an XSLT stylesheet), …` or `.dita (needs dita), …`.

  3. packages/cli/src/agent/update.md:763 (posted inline) — "math and `%%` comments included" doubles the percent sign. LaTeX's comment character is a single %, matching the vendor-contract fixture (% simply) and capabilities.ts's own description ("skips math, `\verb` and `%` comments"). Looks like an unintentional typo.

Also noted, not flagged as a finding: a couple of the edited doc comments (capabilities.ts around the VALE_CONVERTER_READERS block, formats.ts's markup-formats docstring) now contain a line or two noticeably longer than the surrounding paragraph's wrap width, from appending clauses in place rather than re-wrapping. Cosmetic only — Prettier doesn't reflow block comments, so this won't surface in CI.

I did not run the build/lint/test suite myself; the PR body already reports pnpm typecheck, pnpm lint, and the full suite (3459 passed) including the vendor-contract tests against the real 3.29.0 binary, and CI will report its own results on the PR.

Comment on lines +762 to +763
**LaTeX and Markdoc are read as markup.** `.tex` used to be linted
as one block of prose, commands, math and `%%` comments included. It

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[New] `%%` comments looks like a typo — LaTeX's comment character is a single %, and every other place this PR touches (the vendor-contract fixture's % simply, and capabilities.ts's "skips math, \verb and % comments") uses a single %. Doubling it here is inconsistent and likely unintentional.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional, not a typo: the recipes under src/agent/ are rendered through sprintf (they carry %(VALE_VERSION)s-style placeholders), so a literal percent sign has to be written %%. With a bare % here, taskless agent update failed with [sprintf] unexpected placeholder. The rendered section reads a single %: pnpm cli agent update --section migrating-to-0-13-9 prints "commands, math and % comments included", and the new reconcile-marker test renders that section, so a regression to a bare % fails it.

…cstrings

The exclusion-glob, buildValeGlob and valeConverterList docstrings still
illustrated the crash with .adoc and .rst, which 3.29.0 reads natively.
Re-wrap the comment paragraphs this PR edited in place.
@aibex-agent

aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown
Author

Review follow-up, in 425675b:

  1. formats.ts converterExclusionGlobs / buildValeGlob docstrings: fixed, now *.dita / topics/intro.dita (noting the original measurement was made with *.adoc).
  2. capabilities.ts valeConverterList() docstring: fixed, now .dita (needs dita).
  3. %% in update.md: intentional sprintf escape, answered on its thread.

Also re-wrapped the comment paragraphs this PR had extended in place.

@aibex-agent
aibex-agent Bot merged commit 312d69c into main Dec 2, 2026
6 checks passed
@aibex-agent
aibex-agent Bot deleted the aibex/t_gdgxyDjiw09SQqcFddG3f5kC-vale-3.29 branch December 2, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant